<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>
        {% block title %}{% endblock %}
    </title>
    <link rel="stylesheet" href="{{ url_for('static',filename='style/common.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename="bootstrap/css/bootstrap.css") }}">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <a class="navbar-brand" href="#">LOGO</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01"
            aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarColor01">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item {{ 'active' if 1==1 else '' }}">
                <a class="nav-link" href="{{ url_for('index.index') }}">首页</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{ url_for('index.about') }}">关于我们</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{ url_for('index.contact') }}">联系我们</a>
            </li>
            {% if not session['is_login'] %}
                <li class="nav-item">
                    <a class="nav-link" href="{{ url_for('user.register') }}">账号注册</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ url_for('user.login') }}">账号登录</a>
                </li>
            {% endif %}
            <li class="nav-item">
                <a class="nav-link" href="{{ url_for('user.index') }}">会员中心</a>
            </li>

        </ul>
        {#        <form class="form-inline">#}
        {#            <input class="form-control mr-sm-2" type="search" placeholder="请输入搜索关键词" aria-label="Search">#}
        {#            <button class="btn btn-outline-warning" type="submit">搜索</button>#}
        {#        </form>#}
        {% if session['is_login'] %}
            <a href="{{ url_for('user.logout') }}" class="btn btn-primary btn-round">安全退出</a>
        {% endif %}
    </div>
</nav>

<div class="container main">
    {% block content %}{% endblock %}
</div>

<div class="footer">
    xxxx信息技术有限公司版权所有&copy;1998-2025
</div>

</body>
</html>